package com.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.pojo.SMShareParameterDomain;
import com.service.ShowService;

@RestController
@RequestMapping("/show")
public class ShowComtroller {

	@Autowired
	private ShowService showService;
	
	@RequestMapping("/get")
	public SMShareParameterDomain show(Integer paramId) {
		return showService.getShare(paramId);
	}
	
	@RequestMapping("/list")
	public List<SMShareParameterDomain> showList() {
		return showService.getShareList();
	}
}
